#!/bin/sh

ENV_FILE=shell_env.sh
CUR_PATH=$(cd "$(dirname "$0")"; pwd)
function dos2unix4file(){
	for element in `ls $1`
	do
		dir_or_file=$1"/"$element
        	if [ -d $dir_or_file ]
        		then 
            		dos2unix4file $dir_or_file
        	else
            		echo $dir_or_file
			sed -i 's/\r$//g' $dir_or_file
        	fi  
	done
}
dos2unix4file $CUR_PATH
